/*
 * @Author: luthor luthor-li@qq.com
 * @Date: 2024-10-27 23:22:41
 * @LastEditors: luthor luthor-li@qq.com
 * @LastEditTime: 2024-10-27 23:22:48
 * @FilePath: \tilesethub_back\routes\authRoute.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
const Router = require('koa-router')
const {
  registerUser,
  generateTokenForUser
} = require('../controllers/authController')

const router = new Router()

router.post('/register', registerUser)
router.post('/token', generateTokenForUser)

module.exports = router
